package com.smz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.smz.entity.TLaser;

import java.util.List;

/**
 * @author Kan
 * @Time 2021-11-21-18:35
 */

public interface TLaserService extends IService<TLaser> {
    //将订单号插入到激光码表
    List<TLaser> addToLaser(String[] orderIds);

    //删除激光码，修改订单激光码状态为未生成
    String removeLaser(Integer[] orderIds);

    //分页查询打印订单
    Page<TLaser> findLaserOrders(Integer current, Long pageSize, Long orderId, Long orderStatus);

    //派发打印
    String toPrint(String printer, Integer[] laserIdArr, Integer[] orderIdArr);

    //自动派发
    String autoToPrint(Integer[] orderIdArr);

    //批量删除
    String removeToPrint(Integer[] orderIdArr);
}
